
#ifndef __MEMORY_BLOCK_H__
#define __MEMORY_BLOCK_H__

#include <Windows.h>

typedef struct __DATA_BLOCK
{
    struct __DATA_BLOCK* Next;

#define DBLIST   0
#define DBTEMP   1
    DWORD dwFlags;
    char Buffer[0];
}DATA_BLOCK, *PDATA_BLOCK;

typedef struct __MEMORY_BLOCK_LIST
{
#define MBL_ALLOC_TEMP  1
    DWORD dwFlags;
    ULONG uSize;
    ULONG uCount;
    ULONG uCurrent;
    ULONG Locked;
    ULONG uTempCount;
    struct __DATA_BLOCK* First;
}MEMORY_BLOCK_LIST,*PMEMORY_BLOCK_LIST;


#endif